import java.util.*;

public class Main9 {
    public static void main(String[] args)
    {
        Scanner cin = new Scanner(System.in);

        int n = cin.nextInt();
        int arr [] = new int[n];

        for(int i =0;i<n;i++)
        {
            arr[i] = cin.nextInt();
        }
        int hash[] = new int[100001];
        int count =0;
        for(int i = 0;i<n;i++)
        {
            if(hash[arr[i]] == 0)
            {
                if(count == 0)
                {
                    System.out.print(arr[i]);
                    count++;
                }
                else
                {
                    System.out.print(" " + arr[i]);
                }
            }
            hash[arr[i]]++;
        }


        cin.close();
    }
}
